import React, { Component } from 'react';
import {Switch,Route,Redirect} from 'react-router-dom';
import './App.css';

import IndexPage from './components/IndexPage';
import Tweet from './components/Tweet';

class App extends Component {
  render() {
    return (
      <div className="App">
        <Switch>

          <Route exact path="/">
              <Redirect to="/index" />
          </Route>
          
          <Route path="/index">
              <IndexPage/>
          </Route>

          <Route path="/tweet">
              <Tweet/>
          </Route>
        </Switch>    
          
      </div>
    );
  }
}

export default App;
